User = function( x, y, id, color )
{
    this.x = x;
    this.y = y;
    this.id = id;
    this.width = 30;
    this.height = 30;
    this.color = color;
    this.speed = 1;
    this.speedX = 0;
    this.speedY = 0;
    this.catcher = false;
    this.immunitet = false;
}

this.createUser = function( x, y, id, color )
{
    return new User( x, y, id, color );
}

function drawUserFrame( context, userData )
{
    context.save();
    context.fillStyle = userData.color;
    context.beginPath();
    context.fillRect( userData.x, userData.y, userData.width, userData.height );
    context.closePath();
    context.fill();
    context.stroke();
    context.restore();          
}